import { connect } from "dva";
import styles from "./index.less";
import { Button, InputItem, WingBlank, List, Toast } from "antd-mobile";
import router from "umi/router";

function App({ orderIdRecord, dispatch }) {
  const { text, list } = orderIdRecord;
  const clickBtn = () => {
    Toast.success("录入成功");
    router.push("mainpage");
  };
  return (
    <div>
      <WingBlank>
        <div className={styles.normal}>
          <List>
            <InputItem
              clear
              placeholder="请输入订单编码"
              className={styles.input_style}
            />
          </List>
        </div>

        <div className={styles.div_button}>
          <Button className={styles.button} onClick={clickBtn}>
            查询
          </Button>
        </div>
      </WingBlank>
    </div>
  );
}
export default connect(({ orderIdRecord }) => ({ orderIdRecord }))(App);
